#define _CRT_SECURE_NO_WARNINGS 1  
#include<stdio.h>  
int main()  
{  
   const char* week[] = { "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday" };  
   int i;  
   printf("Please input a number(1~7):");  
   scanf("%d", &i);  
   if (i < 1 || i > 7)  
       printf("Input error!\n");  
   else  
       printf("%s\n", week[i - 1]);  
   return 0;  
}